package org.dubnation.car.query;

import lombok.Data;
import org.dubnation.base.query.BaseQuery;

import java.util.Date;

@Data
public class CarDocQuery extends BaseQuery {
    //==========高级查询条件============//
    private Long carType;
    private Double priceMin;//最小价格   BigDecimal不能比较大小
    private Double priceMax;//最大价格
    private Integer carAgeMin; //最小车龄
    private Integer carAgeMax;//最大车龄车龄
    //是否超值
    private Integer costEffective;
    //急售
    private Integer rushSale;
    //准新车
    private Integer quasiNewCar;
    //可迁全国
    private Integer transitiveCountry;
    //==========高级查询条件============//
    //==========排序条件============//
    private String orderField;//排序字段
    private String orderType; //排序类型 desc降序 asc升序号
    private String brand; //品牌
    private String shopName; //店铺名称
    //通过经纬度可以获取到用户所处的位置
    private Double lng;
    private Double lat;
    private Integer distance; //用户与店铺之间的距离(km)
    //==========排序条件============//
    //==========分页条件============//
    //不用写了BaseQuery已经有了
    //==========分页条件============//
}
